package com.water.wfo.user.ability.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.water.wfo.sys.pojo.entity.LinkEntity;
import com.water.wfo.user.ability.LinkAbility;
import com.water.wfo.user.mapper.LinkMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author water&7
 * @since 2024-07-24
 */
@Component
public class LinkAbilityImpl implements LinkAbility {

    @Autowired
    private LinkMapper linkMapper;
    @Override
    public int insert(LinkEntity entity) {
        return linkMapper.insert(entity);
    }

    @Override
    public int update(LinkEntity entity) {
        return linkMapper.update(entity);
    }

    @Override
    public List<LinkEntity> queryAllLinkEntity() {
        return linkMapper.queryAllLinkEntity();
    }
}
